/*
 * 项目基础类
 * @author: huangzong
 */
import C from '@/common/common.js'

class Subject {
  /*
     * 打开基础设置页面
     */
  async openEditSubject (row) {
    return await C.openBrowserWindow('/editSubject', row, {
      transparent: true,
      frame: false,
      // openDevTools: true,
      width: 1200,
      height: 900,
      useSpa: false,
      spaModel: 'shop'
    })
  }

  /*
     * 编辑项目
     */
  async editSubject (data) {
    return await C.ajax('/shop/subject/editsubject', data, 'post')
  }
}

export default new Subject()
